import { RouteRecordRaw } from 'vue-router'

const routeName = 'test'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/t',
    name: `${routeName}-1`,
    component: () => import('@/components/Suspense.vue'),
    redirect: '/t/1',
    meta: {title: '测试'},
    children: [
      {
        path: '/t/1',
        name: `${routeName}-1`,
        component: () => import('@/views/Test/Test1.vue'),
        meta: {title: '测试1'}
      },
      {
        path: '/t/2',
        name: `${routeName}-2`,
        component: () => import('@/views/Test/Test2.vue'),
        meta: {title: '测试2'}
      },
      {
        path: '/t/3',
        name: `${routeName}-3`,
        component: () => import('@/views/Test/Test3.vue'),
        meta: {title: '测试3'}
      },
      {
        path: '/t/4',
        name: `${routeName}-4`,
        component: () => import('@/views/Test/Test4.vue'),
        meta: {title: '测试4'}
      },
      {
        path: '/t/5',
        name: `${routeName}-5`,
        component: () => import('@/views/Test/Test5.vue'),
        meta: {title: '测试5'}
      },
      {
        path: '/t/6',
        name: `${routeName}-6`,
        component: () => import('@/views/Test/Test6.vue'),
        meta: {title: '测试6'}
      },
    ]
  },

]

export default routes